<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/4/10
  Time: 21:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<html>
<head>
    <title>添加学生</title>
</head>
<body>
<%--<c:if test="${!fn:contains(login_user.power,'2' )}">--%>
<%--    <c:redirect url="nopower.jsp"/>--%>
<%--</c:if>--%>
<c:if test="${param.status=='1'}">
    <script>alert("学生添加成功！")</script>
</c:if>
    <h1>新增学生</h1>
    <hr/>
    <form action="addstudent" method="post">
        姓名：<input name="name"/><br/>
        年龄：<input name="age"/><br/>
        性别：<input name="sex" type="radio" value="1">男
             <input name="sex" type="radio" value="0">女<br/>
        <button type="submit">添加学生</button>
        <button type="button" onclick="javasrcipt:location.href='index.jsp'">返回</button>
    </form>
</body>
</html>
